package com.njtcedu.microblog.intranet.user.web;

import javax.inject.Inject;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import com.njtcedu.microblog.intranet.user.service.UserService;

@Controller
public class UserAjaxController {
	
	@Inject
	private UserService userService;

	
	@RequestMapping(value = "/user/delete/{userId}", method = RequestMethod.DELETE)
	@ResponseBody
	public boolean removeUser(@PathVariable("userId") Integer userId) {
		
		return userService.removeUser(userId);
	}
}
